package org.example.nettyrpc;

import org.example.nettyrpc.common.IpPortTuple;

public class SimpleEndPoint extends EndpointBase {

    public SimpleEndPoint(IpPortTuple myIpPort, IpPortTuple[] otherIpPorts) {
        super(myIpPort, otherIpPorts);
    }

    public void speak() {
        System.out.println("Hi, I am SimpleEndPoint!");
    }

    /**
     * 参数应该使用对象类型，否则反射会失败
     * @param a
     * @param b
     * @return
     */
    public int add(Integer a, Integer b) {
        return a + b;
    }
}
